﻿@model HomePageProductsModel
@using Nop.Web.Framework.UI;
@using Nop.Web.Models.Catalog;
@if (Model.Products.Count > 0)
{
    <div class="home-page-product-grid">
        <div class="category-title">
            <h1>
                @T("HomePage.Products")
            </h1>
        </div>
        <div class="category-products">
        @if (Model.UseSmallProductBox)
        {
            @(Html.DataList<ProductOverviewModel>(Model.Products, 3,
            @<div class="item-box">
                @Html.Partial("_ProductSmallBox", @item)
            </div>
                ))
        }
        else
        {
            @(Html.DataList<ProductOverviewModel>(Model.Products, 3,
                            @<div class="item-box">
                @Html.Partial("_ProductBox", @item)
                            </div>
                            ))
        }
        </div>
    </div>
}